//
//  CLKeyedArchiver.h
//  CLBrowser
//
//  Created by 梁慧聪 on 2022/7/17.
//

#import "CLObject.h"

NS_ASSUME_NONNULL_BEGIN

@interface CLKeyedArchiver : CLObject
/// 归档文件
+ (void)archiver:(NSString *)folderName fileName:(NSString*)fileName object:(id)object;
/// 解档文件
+ (id)unarchiver:(NSString *)folderName fileName:(NSString*)fileName;
/// 清空归档文件
+ (BOOL)clear;

/// 是否存在归档文件
+ (BOOL)isExist:(NSString *)folderName fileName:(NSString *)fileName;

/// 创建文件夹,如果存在则不创建
+ (BOOL)creat_file:(NSString *)path;
@end

NS_ASSUME_NONNULL_END
